import server from "@/utils/requests";

export const getText = ( params)=>{
    return server({
        url:'/content/analysis/text',
        method:'post',
        data:params
    })
}

export const getUrl = (params)=>{
    return server({
        url:'/content/analysis/url',
        method:'post',
        data:params
    })
}
export const getCollections = (params)=>{
    return server({
        url:'/collections',
        method:'get',
       params:params
    })
}

export const uploadImg = (params)=>{
    return server({
        url:'/upload',
        method:'post',
        data:params
    })
}

export const imgAs = (params)=>{
    return server({
        url:'/content/analysis/pic',
        method:'post',
        data:params
    })
}

export const roasts = ()=>{
    return server({
        url:'/roasts',
        method:'get'
    })
}